#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mymath.h"
#include "mystdio.h"

int main()
{
    int a=1, b=2;
    printf("1+2=%d\n", Add(a, b));

    printf("打开文件\n");
    myFILE* fp = my_fopen("./log.txt", "w");
    if (NULL == fp)
    {
        perror("my_fopen");
        exit(-1);
    }
    const char* s = "hello";
    my_fwrite(fp, s, strlen(s));
    my_fclose(fp);

    return 0;
}
